package com.hotel.sampleTool;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hotel.BL.POSItemLogic;

import data.POSItem;

public class POSItemSample extends RequestSampleData{
	public POSItemSample(HttpServletRequest req,HttpServletResponse resp){
		this.req = req;
		this.resp = resp;
	}
	public void CreateSample() {
		CreateSample(1);
	}

	public void CreateSample(int iteration) {
		POSItemLogic posItemLogic = new POSItemLogic(req,resp);
		List<POSItem> ps = posItemLogic.GeneratePOSItem(1);
//		long maxDisplayId = posItemLogic.GetMaxPOSItemDisplayId(1);
		for(POSItem a : ps){
//			maxDisplayId++;
//			a.setDisplayId(maxDisplayId);
			datastore.put(a.getEntity());
		}
	}

}
